﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Principal;

namespace HMS.Security
{
    //class MyPrincipal
    //{
    //}
    public class HMSPrincipal : IPrincipal
    {
        public HMSIdentity identity;        

        public HMSPrincipal(HMSIdentity ident)
        {
            this.identity = ident;
        }
        
        public IIdentity Identity
        {
            get { return identity; }
        }

        bool IPrincipal.IsInRole(string role)
        {
            return false;
        }
    }
}
